/**
 * 
 */
package web;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

/**
 * @spring.bean name="musicController"
 * @author ipeel
 *
 */
public class MusicController implements Controller {
	 /** Logger for this class and subclasses */
    protected final Log logger = LogFactory.getLog(getClass());
    
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    	String[] alphabet = {"All","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1-9"};
    	Map<String, Object> beans = new HashMap<String, Object>();
    	beans.put("alphabet", alphabet);
    	
    	return new ModelAndView(IConstants.Views.MUSIC_CONTAINER, beans);
    }
}
